package cn.kgc.service.impl;

import cn.kgc.dao.UserMapper;
import cn.kgc.pojo.User;
import cn.kgc.service.UserService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;


@Service("userServiceImpl")
public class UserrServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    public UserMapper getUserMapper() {
        return userMapper;
    }

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public User login(User user){
        return userMapper.login(user);
    }
}
